package org.vestbjergbyggecenter.Test;

import static org.junit.Assert.*;

import org.junit.Test;
import org.vestbjergbyggecenter.Model.Category;

public class TestCategory {

	@Test
	public void testSetTitle() {
		Category title1 = new Category("Imeto",1);
        title1.setTitle("Imeto");
        assertEquals("Imeto", title1.getTitle());
    }
	
	@Test
	public void testGetTitle() {
		Category title1 = new Category("Imeto",1);
        title1.setTitle("Imeto");
        assertEquals("Imeto", title1.getTitle());
    }
	
	@Test
	public void testSetDiscount() {
		Category title1 = new Category("Imeto",1);
        title1.setDiscount(1);
        assertEquals(1, title1.getDiscount(), 0);
    }
	
	
	
	@Test
	public void testGetDiscount() {
		Category title1 = new Category("Imeto",1);
        title1.setDiscount(1);
        assertEquals(1, title1.getDiscount(), 0);
    }

}
